package com.xiyu.service.controller.admin.infra.data;

import com.xiyu.service.vo.infra.data.rate.RateListQueryOutput;
import jakarta.annotation.security.PermitAll;
import org.springframework.web.bind.annotation.*;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Operation;

import jakarta.validation.constraints.*;
import jakarta.validation.*;
import jakarta.servlet.http.*;
import java.util.*;
import java.io.IOException;

import com.xiyu.service.framework.web.web.core.pojo.PageResult;
import com.xiyu.service.framework.web.web.core.pojo.CommonResult;
import static com.xiyu.service.framework.web.web.core.pojo.CommonResult.success;

import com.xiyu.service.framework.excel.core.util.ExcelUtils;

import com.xiyu.service.framework.operateLog.core.annotations.OperateLog;
import static com.xiyu.service.framework.operateLog.core.enums.OperateTypeEnum.*;

import com.xiyu.service.service.infra.data.RateService;

@Tag(name = "货币汇率")
@RestController
@RequestMapping("/infra/data/rate")
@Validated
public class RateController {

    @Resource
    private RateService rateService;

    @PermitAll
    @GetMapping("/list-query")
    @Operation(summary = "查询")
    public CommonResult<List<RateListQueryOutput>> listQuery() {
        return success(rateService.listQuery());
    }

}
